from bs4 import BeautifulSoup										#导入库
import requests														#导入requests库
res=requests.get('https://www.dytt8.net/html/gndy/dyzz/index.html')	#访问网址
res.raise_for_status()
soup = BeautifulSoup(res.content,'lxml')							#创建对象
result=soup.select("[style='padding-left:3px']")					#查找style属性为指定值的内容
for re in result:
	if re.string!=None:
		print(re.string)											#输出结果
